// tab的控制器
angular.module('tab.controller', [])
    .controller("TabCtrl", function ($scope,$location,$state) {
        //if ($location.path() == '/tab/login') {
        //
        //    console.log(2222);
        //    $(".tab-nav").css({
        //        display:"none"
        //    })
        //}else {
        //    $(".tab-nav").css({
        //        display:"inline-block"
        //    })
        //}
        console.log($location.$$absUrl);
        $scope.clickmenu=function(){
            console.log(1234);
            console.log($location.$$absUrl);
            if($location.$$absUrl.indexOf('login')>-1){
                return
            }else{
                $state.go('tab.home')
            }
        }

        $scope.clicperson=function(){
            console.log("clicperson");
            console.log($location.$$absUrl);
            if($location.$$absUrl.indexOf('login')>-1){
                return
            }else{
                $state.go('tab.personalcenter')
            }
        }





    })
